]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
swipeTracker: Check all modifiers for modifier-scroll
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 26 May 2025 12:08:31 +0000 (14:08 +0200)
committerMarge Bot <marge-bot@gnome.org>
Tue, 27 May 2025 12:04:11 +0000 (12:04 +0000)
It is possible that more than one modifiers is configured as
"button modifier". While mutter should only let through
scroll events when all modifiers are present, it doesn't hurt
to check for it on the gnome-shell side as well.

Related: https://gitlab.gnome.org/GNOME/mutter/-/issues/4129
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3725>

js/ui/swipeTracker.js

index 43a4cbadf5fd68074e4466852fa34fd9b6e969bd..d3df86ab3176114a4185a9b71c66a997697e1353 100644 (file)
@@ -358,7 +358,7 @@ const ScrollGesture = GObject.registerClass({
             return false;
 
         if (!this._began && this.scrollModifiers !== 0 &&
-            (event.get_state() & this.scrollModifiers) === 0)
+            (event.get_state() & this.scrollModifiers) !== this.scrollModifiers)
             return false;
 
         return true;